//
// Created by kevin on 2020/6/22.
//

#include "image_box/common_include.h"
#include "image_box/image.h"
using namespace std;
int main(int argc, char **argv) {

    ros::init(argc, argv, "image_box");
    wtr::imageBox imgHandle;
    wtr::Node nh;

    while(!ros::isShuttingDown()){

        imgHandle.readImage();
        imgHandle.setLoadPos(nh.getLoadPos());
        imgHandle.setBox();
        nh.imageBoxPublish(imgHandle.getMask());
        nh.imageRawPublish(imgHandle.getRaw());
        ros::spinOnce();
    }
    return 0;
}


